package controller.xml;

import java.util.HashMap;
import java.util.Map;
import java.util.Properties;

/**
 * 
 * @author Guillaume
 *
 */
public class Commande {

	private Map<String, Object> commandeProp = new HashMap<String, Object>();

	/**
	 * 
	 */
	public Commande() {

	}

	/**
	 * 
	 * @param key
	 * @param value
	 */
	public void setCommande(String key, Object value) {
		commandeProp.put(key, value);
	}

	public boolean getCommande(String key) {
		return commandeProp.containsKey(key);
	}
	
	/**
	 * 
	 * @return
	 */
	public Properties convertToProps() {
		Properties properties = new Properties();
		properties.putAll(commandeProp);
		return properties;
	}

}
